<?
	$params[sid] = $sid;
	$params[action] = "changeBankDetails";
	$url = "$baseURL/$webDIR/?".encode_params($params);

	if($errorMsg) echo "<center>$errorMsg<center>";
	$info2 = list_bank_details($id,'array');
	$info2 = $info2[0];
	$info = array_merge($info1,$info2);


?>


<TABLE border=1 class='bTable' cellspacing='0'>
	<form action='<?=$url;?>' method='POST'>
	<tr>
		<th colspan='2'>
			Bank information
		</th>
	</tr>
	<tr <? if($errorCode==19) echo "class='err'"; ?>><td>Release Level</td>
		<td>
			<selEct name='current_release_level' >
			<?
				$opt = "
					  <option value='200'>$200</option>
					  <option value='300'>$300</option>
					  <option value='400'>$400</option>
					  <option value='500'>$500</option>
					  <option value='1000'>$1000</option>
					  <option value='1500'>$1500</option>
					  <option value='2000'>$2000</option>
					  <option value='2500'>$2500</option>
					  <option value='3000'>$3000</option>
					  <option value='5000'>$5000</option>				"			;
				$newopt = str_replace("'$info[current_release_level]'","$info[current_release_level] selected",$opt);
				echo $newopt;
			?>
			</select>
		</td>
	</tr>

	<tr <? if($errorCode==18) echo "class='err'"; ?>><td>Payment Method</td>
		<td>
			<select name='payment_method'>
			<?
				$opt = "
				<option value='wire'>Bank Wire</option>
				<option value='check'>Check</option>
				"			;
				$newopt = str_replace("'$info[payment_method]'","$info[payment_method] selected",$opt);
				echo $newopt;
			?>
			</select>
			if you select 'Payment Method' Check, the fields below are not required.
		</td>
	</tr>
	<tr <? if($errorCode==12) echo "class='err'"; ?>><td>Swift Code</td>
		<td>
			<input type='text' name='swift_code' value='<?=$info[swift_code];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==13) echo "class='err'"; ?>><td>Bank Name</td>
		<td>
			<input type='text' name='bank_name' value='<?=$info[bank_name];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==14) echo "class='err'"; ?>><td>Bank Address</td>
		<td>
			<input type='text' name='bank_address' value='<?=$info[bank_address];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==15) echo "class='err'"; ?>><td>Account Number</td>
		<td>
			<input type='text' name='account_number' value='<?=$info[account_number];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==16) echo "class='err'"; ?>><td>Routing Number</td>
		<td>
			<input type='text' name='routing_number' value='<?=$info[routing_number];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==17) echo "class='err'"; ?>><td>Account Holder</td>
		<td>
			<input type='text' name='account_holder' value='<?=$info[account_holder];?>'>
		</td>
	</tr>
	<tr><td colspan='2' align='center'>
		<input type='button' value='Back' onClick='javascript:history.go(-1)'>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type='submit' value='Change'>
	</td></tr>
	</form>
</TABLE>
